﻿using MQ.Core.Common;
using MQ.Core.Entity;
using System;
using System.Collections.Generic;

namespace MQ.Core.IRepository
{
    public interface IDictionaryTypeRepository
    {
        #region 查询数据
        bool ExistByName(long parentId,string name);
        bool ExistByValue(long parentId, string value);
        IEnumerable<DictionaryTypeEntity> GetList(string query);
        IEnumerable<DictionaryTypeEntity> GetPageList(Pagination pagination, string query);
        #endregion

        #region 提交数据
        int Add(DictionaryTypeEntity entity);
        int Update(DictionaryTypeEntity entity);
        int Delete(long id);
        int Delete(string ids);
        int Delete(DictionaryTypeEntity entity);
        #endregion
    }
}
